<?php
/**
 * This file contains the class SubmitPersonView which provides
 * all of the text requirements for submitting a person
 *
 * @copyright  2009 A Memory Tree
 * @license    A Memory Tree License
 * @version    $Id:$
 */
/**
 * This class provides the text for MemberView
 *
 * @copyright  2009 A Memory Tree
 * @license    A Memory Tree License
 * @version    Release: @package_version@
 */
class SubmitPersonView
{
    /**
      * The html class that provides helpers to display the text
     *
     * @var Html
     */
    private $_html;
    /**
     * Builds the list of text messages
     * 
     * @return void
     * @param Html &$html
     */
    public function __construct(&$html)
    {
        $this->_html = $html;
    }
    /**
     * Provide the notification message about adding a person
     *
     * @return string
     * @param int $personId
     * @param string $fullname
     */
    public function notificationMessage($personId, $fullname)
    {
        return <<< EOT
    <p>Hi,</p>
    <p>We are writing to let you know that a Remembrance Page has been opened on <a href="http://www.amemorytree.co.nz">http://www.amemorytree.co.nz</a> for $fullname today.</p>
    <p>It has been created for your extended network of friends and family.</p>
    <p><span style="color:red">This is a free service and the page is open to receive messages for the next 21 days.</span> After that time, it will be archived and be available to view and use again at any time in the future.</p>
    <p>There is no obligation to use this page. However we hope it brings comfort to those around you who can visit to refresh flowers, light candles and leave messages and memories as often as they like.</p>
    <p>It may also be useful for you to refer to this page in the future to be able to trace all notices that have been published in leading daily newspapers.</p>
    <p>Please accept our condolences and may your fond memories and the support of others bring you comfort at this time.</p>
    <p>The direct link to the page is: <a href="http://amemorytree.co.nz/remembrance.php?personid=$personId">http://amemorytree.co.nz/remembrance.php?personid=$personId</a></p>
    <p>Yours sincerely</p>
    <p>The Team</p>
    <p>A Memory Tree Limited &copy; 2006-2009<br><a href="http://amemorytree.co.nz/terms.php">Terms</a> <a href="http://amemorytree.co.nz/privacy.php">Privacy</a> <a href="http://amemorytree.co.nz/codeofethics.php">Code of Ethics</a> <a href="http://amemorytree.co.nz/safety.php">Safety</a> <a href="http://amemorytree.co.nz/aboutus.php">About</a> <a href="http://amemorytree.co.nz/contactus.php">Contact Us</a></p> 
    <p>Create, share, enjoy, learn and discover ...</p>
EOT;
    }
}
?>
